﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>数据管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta content="Premium Multipurpose Admin & Dashboard Template" name="description" />
    <meta content="MyraStudio" name="author" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <!-- App favicon -->
    <link rel="shortcut icon" href="assets/images/favicon.ico">



    <!-- App css -->
    <link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/theme.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/bootstrap-table.css" rel="stylesheet" type="text/css" />
    <link href="/assets/layui/css/layui.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/step.css" rel="stylesheet" type="text/css" />
    <link href="/assets/layui/css/transfer.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/bootstrap-editable.css" rel="stylesheet" type="text/css" />
    <style>
        .login-user {
            display: flex;
            color: #000;
            line-height: 30px;
        }

        .login-user input {
            height: 30px;
            border-radius: 4px;
            margin: 0px 4px;
        }

        .login-user select {
            height: 30px;
            border-radius: 4px;
            margin: 0px 4px;
            width: 20px;
        }
    </style>
</head>

<body>

    <!-- Begin page -->
    <div id="layout-wrapper">

        <div class="container-fluid" style="margin-top: 10px;">


            <!-- start page title -->

            <!-- <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-body">
                            <h4 class="card-title">存储分机节点选择</h4>
                            <label style="white-space: nowrap;">节点:</label>
                            <select id="storagelps" name="storagelps" lay-verify="required">
                                <option value=""></option>
                                <option value="">172.16.15.46</option>
                            </select>
                            
                        </div> 
                    </div> 
                </div>
            </div>
           -->


            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-body">
                            <h4 class="card-title">大数据规则配置</h4>
                            <button type="button" class="btn btn-primary waves-effect waves-light"
                                onclick="createbRuleModel()">新增</button>
                            <br></br>
                            <table id="table_page" class="table mb-0">
                            </table>
                        </div> <!-- end card body-->
                    </div> <!-- end card -->
                </div><!-- end col-->
            </div>
            <!-- end row-->

        </div> <!-- container-fluid -->
    </div>
    <!-- END layout-wrapper -->

    <!-- Add model -->
    <div id="bruleModal" class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog"
        aria-labelledby="bruleModalLabel" style="display: none;">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <!--模态框的头部内容-->
                <div class="modal-header">

                    <h4 class="modal-title" id="bruleModalLabel">新增规则</h4>
                </div>
                <!--模态框的主体内容-->

                <div class="layui-fluid">
                    <div class="layui-card">
                        <div class="layui-card-body" style="padding-top: 40px;">
                            <div class="layui-carousel" id="stepForm" lay-filter="stepForm" style="margin: 0 auto;">
                                <div carousel-item class="layui-form" lay-filter="brule">
                                    <div>
                                        <form class="layui-form"
                                            style="margin: 0 auto;max-width: 460px;padding-top: 40px;">
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">源IP地址:</label>
                                                <div class="layui-input-block login-user ">
                                                    <input type="text" name="srcip1" lay-verify="required" value="0"
                                                        class="layui-input numInput" required />.
                                                    <input type="text" name="srcip2" lay-verify="required" value="0"
                                                        class="layui-input numInput" required />.
                                                    <input type="text" name="srcip3" lay-verify="required" value="0"
                                                        class="layui-input numInput" required />.
                                                    <input type="text" name="srcip4" lay-verify="required" value="0"
                                                        class="layui-input numInput" required />
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">源IP端口:</label>
                                                <div class="layui-input-block login-user">
                                                    <input type="text" name="src_port" placeholder="输入源IP端口" value="0"
                                                        class="layui-input  port" required />
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">目的IP地址:</label>
                                                <div class="layui-input-block login-user ">
                                                    <input type="text" name="dstip1" lay-verify="required" value="0"
                                                        class="layui-input numInput" required />.
                                                    <input type="text" name="dstip2" lay-verify="required" value="0"
                                                        class="layui-input numInput" required />.
                                                    <input type="text" name="dstip3" lay-verify="required" value="0"
                                                        class="layui-input numInput" required />.
                                                    <input type="text" name="dstip4" lay-verify="required" value="0"
                                                        class="layui-input numInput" required />
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">目的IP端口:</label>
                                                <div class="layui-input-block login-user">
                                                    <input type="text" name="dst_port" placeholder="输入目的IP端口" value="0"
                                                        class="layui-input  port" required />
                                                </div>
                                            </div>

                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">协议名称:</label>
                                                <div class="layui-input-block">
                                                    <select id="proto" name="proto" lay-verify="required">
                                                        <option value=""></option>
                                                        <option value="UDP">UDP</option>
                                                        <option value="TCP">TCP</option>
                                                    </select>
                                                </div>
                                            </div>
                                            
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">存储规则:</label>
                                                <div class="layui-input-block">
                                                    <select id="storage_rule" name="storage_rule" lay-verify="required">
                                                        <option value=""></option>
                                                    </select>
                                                </div>
                                            </div>
                                            
                                            

                                            <div class="layui-form-item" style="text-align: right">
                                                <div class="layui-input-block">
                                                    <button class="layui-btn" lay-submit lay-filter="formStep">
                                                        &emsp;下一步&emsp;
                                                    </button>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                    <div>
                                        <div style="text-align: center;margin-top: 90px;">
                                            <i class="layui-icon layui-circle"
                                                style="color: white;font-size:30px;font-weight:bold;background: #52C41A;padding: 20px;line-height: 80px;">&#xe605;</i>
                                            <div style="font-size: 24px;color: #333;font-weight: 500;margin-top: 30px;">
                                                填写完成
                                            </div>

                                            <div style="text-align: center;margin-top: 50px;">
                                                <button class="layui-btn next">继续</button>
                                                <button class="layui-btn layui-btn-primary"
                                                    id="testSubmitBtn">录入</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--模态框的尾部内容-->

                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div>
        <!-- END model -->

        <!-- Overlay-->
        <div class="menu-overlay"></div>
        <script>
            var ipm = '[[${manageIp}]]';
        </script>
        <!-- jQuery  -->
        <script src="/assets/js/jquery.min.js"></script>
        <script src="/assets/js/bootstrap.bundle.min.js"></script>
        <script src="/assets/js/metismenu.min.js"></script>
        <script src="/assets/js/waves.js"></script>
        <script src="/assets/js/bootstrap-table.js"></script>
        <script src="/assets/js/bootstrap-table-zh-CN.js"></script>
        <script src="/assets/js/bootstrap-editable.js"></script>
        <script src="/assets/js/bootstrap-table-editable.js"></script>
        <script src="/assets/layui/layui.js"></script>
        <script src="/assets/js/step.js"></script>
        <script src="/assets/js/bootstrap-switch.min.js"></script>
        <!-- third party js -->

        <!-- third party js ends -->

        <!-- Datatables init -->
        <script src="/assets/pages/data-rule-demo.js"></script>
        <script src="/assets/pages/arrowall.js"></script>

        <!-- App js -->
        <script src="/assets/js/theme.js"></script>

</body>

</html>